package com.flw.eslab.dto;

import com.flw.eslab.model.Resource;
import com.flw.eslab.model.User;



public class Resource_Dto {
	private Integer id;
	private String name;
	private String url;
	private String type;
	private String brief;
	private Integer count;//下载次数
	private Integer userId;
	public Resource toResource(){
		Resource resource=new Resource();
		resource.setId(id);
		resource.setBrief(brief);
		resource.setCount(count);
		resource.setName(name);
		resource.setType(type);
		resource.setUrl(url);
		User user=new User();
		user.setId(userId);
		resource.setUser(user);
		return resource;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getBrief() {
		return brief;
	}
	public void setBrief(String brief) {
		this.brief = brief;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}
